
#ifndef POINTCONSTRAINTWIDGET_H
#define POINTCONSTRAINTWIDGET_H

#include <BButton>
#include <BComboBox>
#include <BRealSpinBox>
#include <BCheckBox>
#include <BPointConstraint>

using namespace BWE;

class PointConstraintPanel : public BWidget
{
	BOBJECT(PointConstraintPanel);
public:
	PointConstraintPanel(BWidget* parent = 0);
	~PointConstraintPanel();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);
	void slotTauSpinBoxEditFinished(BObject* object, const BValue& value);
	void slotDamplingSpinBoxEditFinished(BObject* object, const BValue& value);
	void slotImpulseClampEditFinished(BObject* object, const BValue& value);

private:
	BPointConstraint*		_pointConstraint;
	BComboBox*				_flagComboBox;
	BRealSpinBox*			_erpSpinBox;
	BRealSpinBox*			_cfmSpinBox;
	BRealSpinBox*			_tauSpinBox;
	BRealSpinBox*			_dampingSpinBox;
	BRealSpinBox*			_impulseClampSpinBox;
};

#endif
